package com.joven.shelltest.utils.mapstrategy;

import lombok.Getter;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: wzj
 * @Date: 2024/3/4 10:50
 */
@Getter
@Component
public class CalculationFactory {

    public final Map<String, CalculationStrategy> calculationStrategyMap = new HashMap<>(16);

    public CalculationFactory(Map<String, CalculationStrategy> strategyMap) {
        this.calculationStrategyMap.clear();
        this.calculationStrategyMap.putAll(strategyMap);
    }


}
